#-*- coding:UTF-8 -*-
'''
Created on 2013-6-7

@author: hanjiewu
'''
#全局解释器锁GIL
#退出线程，thread.exit(),sys.exit() raise SystemExit
from time import ctime, sleep

def loop0():
    print 'start loop 0 at: ', ctime()
    sleep(4)
    print 'loop 0 done at: ', ctime()
def loop1():
    print 'start loop 1 at: ', ctime()
    sleep(2)
    print 'loop 1 done at: ', ctime()
def main():
    print 'starting at: ', ctime()
    loop0()
    loop1()
    print 'all DONE at: ', ctime()
main()